sync.Mutex.state (field)
21 uses
sync (current package)
mutex.go#L37: state int32
mutex.go#L85: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L101: old := m.state
mutex.go#L109: if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
mutex.go#L124: old := m.state
mutex.go#L133: atomic.CompareAndSwapInt32(&m.state, old, old|mutexWoken) {
mutex.go#L138: old = m.state
mutex.go#L164: if atomic.CompareAndSwapInt32(&m.state, old, new) {
mutex.go#L175: old = m.state
mutex.go#L193: atomic.AddInt32(&m.state, delta)
mutex.go#L199: old = m.state
mutex.go#L216: _ = m.state
mutex.go#L221: new := atomic.AddInt32(&m.state, -mutexLocked)
mutex.go#L247: if atomic.CompareAndSwapInt32(&m.state, old, new) {
mutex.go#L251: old = m.state
rwmutex.go#L67: _ = rw.w.state
rwmutex.go#L87: _ = rw.w.state
rwmutex.go#L114: _ = rw.w.state
rwmutex.go#L144: _ = rw.w.state
rwmutex.go#L169: _ = rw.w.state
rwmutex.go#L201: _ = rw.w.state
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |